import { Component } from '@angular/core';
import { MessageService } from '@iux/live';

@Component({
  templateUrl: './type.component.html',
})
export class TypeComponent {
  constructor(private message: MessageService) {}

  information() {
    this.message.info('This is [<strong style="color: red">Special</strong>] content...,Francis Ford Coppola\'s legendary continuation and sequel to his landmark 1972 film, The_Godfather parallels the young Vito Corleone\'s rise with his son Michael\'s spiritual fall, deepening', {
      lvMaxWidth: '30%'
    });
  }
  success() {
    this.message.success('The files have been successfully uploaded.');
  }
  warning() {
    this.message.warning('The usage of content is over 80%.');
  }
  error() {
    this.message.error('This is failed to back up due to the lack of capacity.');
  }
}
